package com.campusflea.person;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.campusflea.R;

/**
 * Created by Administrator on 2017/6/17.
 */

public class TypeOneViewHolder extends TypeAbstractViewHolder {
    private ImageView avatar;
    private TextView name;
    public TypeOneViewHolder(View itemView) {
        super(itemView);
        avatar= (ImageView) itemView.findViewById(R.id.avatar);
        name= (TextView) itemView.findViewById(R.id.name);

    }
    @Override
    public void binHolder(DataModel model)
    {
        avatar.setBackgroundColor(model.avatarColor);
        name.setText(model.name);
    }

}
